package com.qfedu.dao;


import com.qfedu.pojo.Cards;

import java.math.BigDecimal;
import java.sql.Connection;
import java.util.List;

import com.qfedu.pojo.Account;
import com.qfedu.pojo.Cards;
import com.qfedu.pojo.Debit_card;

import javax.smartcardio.Card;

public interface CardsDao {

    // 显示已绑定的银行卡
    Cards queryCardsByIdcode(String idcode);

    // 查询二类账户、银行卡金额与理财产品价值的金额
    Cards findCardsByIdcode(String idcode);
    public Cards queryCardsByCardnumber(String cardnumber);

    public int saveCards(Cards cards);
/*=======

public interface CardsDao {*/
    Cards findCardsByCardNumber(String cardnumber);

    int outMoney(Cards source, BigDecimal money, Connection connection);

    int inMoney(Cards target, BigDecimal money, Connection connection);


    int updateCards(String money,String cardnumber);

    /*------------------------------------------------------------------*/

    void inMoney(Cards target, int money, Connection connection);

    Cards findCardsnumber(String s);

    Cards find2(Cards cards);

    List<Cards> findAllByIdcode(String idcode);
}
